#include <stdio.h>
int main ()
{
    int i,n,a=0,b=1,s=0;
    scanf("%d",&n);
    for (i=1;i<n;i++)
    {
        s=a+b;
        a=b;
        b=s;
    }
    printf("%d",s);
    return 0;
}
